const express = require('express')
const router = express.Router()
const str = require('../controller/article.js')


//跳转添加文章页面
router.get('/article/add',str.addArticlepage)

//添加新文章
router.post('/article/add',str.addNewArticle)

//文章渲染info页面
router.get('/article/info/:id',str.showArticle)

//文章编辑页面
router.get('/article/adit/:id',str.editArticlePage)

//编辑完成按钮
router.post('/article/adit',str.aditArticle)

module.exports = router